package com.hzhr.extdevice.model.database.device;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class DevAlarmDataExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public DevAlarmDataExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("ID is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("ID is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("ID =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("ID <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("ID >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("ID >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("ID <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("ID <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("ID in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("ID not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("ID between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("ID not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andOutIdIsNull() {
            addCriterion("OUT_ID is null");
            return (Criteria) this;
        }

        public Criteria andOutIdIsNotNull() {
            addCriterion("OUT_ID is not null");
            return (Criteria) this;
        }

        public Criteria andOutIdEqualTo(String value) {
            addCriterion("OUT_ID =", value, "outId");
            return (Criteria) this;
        }

        public Criteria andOutIdNotEqualTo(String value) {
            addCriterion("OUT_ID <>", value, "outId");
            return (Criteria) this;
        }

        public Criteria andOutIdGreaterThan(String value) {
            addCriterion("OUT_ID >", value, "outId");
            return (Criteria) this;
        }

        public Criteria andOutIdGreaterThanOrEqualTo(String value) {
            addCriterion("OUT_ID >=", value, "outId");
            return (Criteria) this;
        }

        public Criteria andOutIdLessThan(String value) {
            addCriterion("OUT_ID <", value, "outId");
            return (Criteria) this;
        }

        public Criteria andOutIdLessThanOrEqualTo(String value) {
            addCriterion("OUT_ID <=", value, "outId");
            return (Criteria) this;
        }

        public Criteria andOutIdLike(String value) {
            addCriterion("OUT_ID like", value, "outId");
            return (Criteria) this;
        }

        public Criteria andOutIdNotLike(String value) {
            addCriterion("OUT_ID not like", value, "outId");
            return (Criteria) this;
        }

        public Criteria andOutIdIn(List<String> values) {
            addCriterion("OUT_ID in", values, "outId");
            return (Criteria) this;
        }

        public Criteria andOutIdNotIn(List<String> values) {
            addCriterion("OUT_ID not in", values, "outId");
            return (Criteria) this;
        }

        public Criteria andOutIdBetween(String value1, String value2) {
            addCriterion("OUT_ID between", value1, value2, "outId");
            return (Criteria) this;
        }

        public Criteria andOutIdNotBetween(String value1, String value2) {
            addCriterion("OUT_ID not between", value1, value2, "outId");
            return (Criteria) this;
        }

        public Criteria andCollectDeviceIdIsNull() {
            addCriterion("COLLECT_DEVICE_ID is null");
            return (Criteria) this;
        }

        public Criteria andCollectDeviceIdIsNotNull() {
            addCriterion("COLLECT_DEVICE_ID is not null");
            return (Criteria) this;
        }

        public Criteria andCollectDeviceIdEqualTo(Integer value) {
            addCriterion("COLLECT_DEVICE_ID =", value, "collectDeviceId");
            return (Criteria) this;
        }

        public Criteria andCollectDeviceIdNotEqualTo(Integer value) {
            addCriterion("COLLECT_DEVICE_ID <>", value, "collectDeviceId");
            return (Criteria) this;
        }

        public Criteria andCollectDeviceIdGreaterThan(Integer value) {
            addCriterion("COLLECT_DEVICE_ID >", value, "collectDeviceId");
            return (Criteria) this;
        }

        public Criteria andCollectDeviceIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("COLLECT_DEVICE_ID >=", value, "collectDeviceId");
            return (Criteria) this;
        }

        public Criteria andCollectDeviceIdLessThan(Integer value) {
            addCriterion("COLLECT_DEVICE_ID <", value, "collectDeviceId");
            return (Criteria) this;
        }

        public Criteria andCollectDeviceIdLessThanOrEqualTo(Integer value) {
            addCriterion("COLLECT_DEVICE_ID <=", value, "collectDeviceId");
            return (Criteria) this;
        }

        public Criteria andCollectDeviceIdIn(List<Integer> values) {
            addCriterion("COLLECT_DEVICE_ID in", values, "collectDeviceId");
            return (Criteria) this;
        }

        public Criteria andCollectDeviceIdNotIn(List<Integer> values) {
            addCriterion("COLLECT_DEVICE_ID not in", values, "collectDeviceId");
            return (Criteria) this;
        }

        public Criteria andCollectDeviceIdBetween(Integer value1, Integer value2) {
            addCriterion("COLLECT_DEVICE_ID between", value1, value2, "collectDeviceId");
            return (Criteria) this;
        }

        public Criteria andCollectDeviceIdNotBetween(Integer value1, Integer value2) {
            addCriterion("COLLECT_DEVICE_ID not between", value1, value2, "collectDeviceId");
            return (Criteria) this;
        }

        public Criteria andIotDeviceIdIsNull() {
            addCriterion("IOT_DEVICE_ID is null");
            return (Criteria) this;
        }

        public Criteria andIotDeviceIdIsNotNull() {
            addCriterion("IOT_DEVICE_ID is not null");
            return (Criteria) this;
        }

        public Criteria andIotDeviceIdEqualTo(Integer value) {
            addCriterion("IOT_DEVICE_ID =", value, "iotDeviceId");
            return (Criteria) this;
        }

        public Criteria andIotDeviceIdNotEqualTo(Integer value) {
            addCriterion("IOT_DEVICE_ID <>", value, "iotDeviceId");
            return (Criteria) this;
        }

        public Criteria andIotDeviceIdGreaterThan(Integer value) {
            addCriterion("IOT_DEVICE_ID >", value, "iotDeviceId");
            return (Criteria) this;
        }

        public Criteria andIotDeviceIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("IOT_DEVICE_ID >=", value, "iotDeviceId");
            return (Criteria) this;
        }

        public Criteria andIotDeviceIdLessThan(Integer value) {
            addCriterion("IOT_DEVICE_ID <", value, "iotDeviceId");
            return (Criteria) this;
        }

        public Criteria andIotDeviceIdLessThanOrEqualTo(Integer value) {
            addCriterion("IOT_DEVICE_ID <=", value, "iotDeviceId");
            return (Criteria) this;
        }

        public Criteria andIotDeviceIdIn(List<Integer> values) {
            addCriterion("IOT_DEVICE_ID in", values, "iotDeviceId");
            return (Criteria) this;
        }

        public Criteria andIotDeviceIdNotIn(List<Integer> values) {
            addCriterion("IOT_DEVICE_ID not in", values, "iotDeviceId");
            return (Criteria) this;
        }

        public Criteria andIotDeviceIdBetween(Integer value1, Integer value2) {
            addCriterion("IOT_DEVICE_ID between", value1, value2, "iotDeviceId");
            return (Criteria) this;
        }

        public Criteria andIotDeviceIdNotBetween(Integer value1, Integer value2) {
            addCriterion("IOT_DEVICE_ID not between", value1, value2, "iotDeviceId");
            return (Criteria) this;
        }

        public Criteria andGasUserIdIsNull() {
            addCriterion("GAS_USER_ID is null");
            return (Criteria) this;
        }

        public Criteria andGasUserIdIsNotNull() {
            addCriterion("GAS_USER_ID is not null");
            return (Criteria) this;
        }

        public Criteria andGasUserIdEqualTo(Integer value) {
            addCriterion("GAS_USER_ID =", value, "gasUserId");
            return (Criteria) this;
        }

        public Criteria andGasUserIdNotEqualTo(Integer value) {
            addCriterion("GAS_USER_ID <>", value, "gasUserId");
            return (Criteria) this;
        }

        public Criteria andGasUserIdGreaterThan(Integer value) {
            addCriterion("GAS_USER_ID >", value, "gasUserId");
            return (Criteria) this;
        }

        public Criteria andGasUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("GAS_USER_ID >=", value, "gasUserId");
            return (Criteria) this;
        }

        public Criteria andGasUserIdLessThan(Integer value) {
            addCriterion("GAS_USER_ID <", value, "gasUserId");
            return (Criteria) this;
        }

        public Criteria andGasUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("GAS_USER_ID <=", value, "gasUserId");
            return (Criteria) this;
        }

        public Criteria andGasUserIdIn(List<Integer> values) {
            addCriterion("GAS_USER_ID in", values, "gasUserId");
            return (Criteria) this;
        }

        public Criteria andGasUserIdNotIn(List<Integer> values) {
            addCriterion("GAS_USER_ID not in", values, "gasUserId");
            return (Criteria) this;
        }

        public Criteria andGasUserIdBetween(Integer value1, Integer value2) {
            addCriterion("GAS_USER_ID between", value1, value2, "gasUserId");
            return (Criteria) this;
        }

        public Criteria andGasUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("GAS_USER_ID not between", value1, value2, "gasUserId");
            return (Criteria) this;
        }

        public Criteria andCurrentTmIsNull() {
            addCriterion("CURRENT_TM is null");
            return (Criteria) this;
        }

        public Criteria andCurrentTmIsNotNull() {
            addCriterion("CURRENT_TM is not null");
            return (Criteria) this;
        }

        public Criteria andCurrentTmEqualTo(Date value) {
            addCriterion("CURRENT_TM =", value, "currentTm");
            return (Criteria) this;
        }

        public Criteria andCurrentTmNotEqualTo(Date value) {
            addCriterion("CURRENT_TM <>", value, "currentTm");
            return (Criteria) this;
        }

        public Criteria andCurrentTmGreaterThan(Date value) {
            addCriterion("CURRENT_TM >", value, "currentTm");
            return (Criteria) this;
        }

        public Criteria andCurrentTmGreaterThanOrEqualTo(Date value) {
            addCriterion("CURRENT_TM >=", value, "currentTm");
            return (Criteria) this;
        }

        public Criteria andCurrentTmLessThan(Date value) {
            addCriterion("CURRENT_TM <", value, "currentTm");
            return (Criteria) this;
        }

        public Criteria andCurrentTmLessThanOrEqualTo(Date value) {
            addCriterion("CURRENT_TM <=", value, "currentTm");
            return (Criteria) this;
        }

        public Criteria andCurrentTmIn(List<Date> values) {
            addCriterion("CURRENT_TM in", values, "currentTm");
            return (Criteria) this;
        }

        public Criteria andCurrentTmNotIn(List<Date> values) {
            addCriterion("CURRENT_TM not in", values, "currentTm");
            return (Criteria) this;
        }

        public Criteria andCurrentTmBetween(Date value1, Date value2) {
            addCriterion("CURRENT_TM between", value1, value2, "currentTm");
            return (Criteria) this;
        }

        public Criteria andCurrentTmNotBetween(Date value1, Date value2) {
            addCriterion("CURRENT_TM not between", value1, value2, "currentTm");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeIsNull() {
            addCriterion("ALARM_TYPE is null");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeIsNotNull() {
            addCriterion("ALARM_TYPE is not null");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeEqualTo(String value) {
            addCriterion("ALARM_TYPE =", value, "alarmType");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeNotEqualTo(String value) {
            addCriterion("ALARM_TYPE <>", value, "alarmType");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeGreaterThan(String value) {
            addCriterion("ALARM_TYPE >", value, "alarmType");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeGreaterThanOrEqualTo(String value) {
            addCriterion("ALARM_TYPE >=", value, "alarmType");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeLessThan(String value) {
            addCriterion("ALARM_TYPE <", value, "alarmType");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeLessThanOrEqualTo(String value) {
            addCriterion("ALARM_TYPE <=", value, "alarmType");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeLike(String value) {
            addCriterion("ALARM_TYPE like", value, "alarmType");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeNotLike(String value) {
            addCriterion("ALARM_TYPE not like", value, "alarmType");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeIn(List<String> values) {
            addCriterion("ALARM_TYPE in", values, "alarmType");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeNotIn(List<String> values) {
            addCriterion("ALARM_TYPE not in", values, "alarmType");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeBetween(String value1, String value2) {
            addCriterion("ALARM_TYPE between", value1, value2, "alarmType");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeNotBetween(String value1, String value2) {
            addCriterion("ALARM_TYPE not between", value1, value2, "alarmType");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("CREATE_TIME is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("CREATE_TIME is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("CREATE_TIME =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("CREATE_TIME <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("CREATE_TIME >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("CREATE_TIME >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("CREATE_TIME <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("CREATE_TIME <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("CREATE_TIME in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("CREATE_TIME not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("CREATE_TIME between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("CREATE_TIME not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("UPDATE_TIME is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("UPDATE_TIME is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("UPDATE_TIME =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("UPDATE_TIME <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("UPDATE_TIME >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("UPDATE_TIME >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("UPDATE_TIME <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("UPDATE_TIME <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("UPDATE_TIME in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("UPDATE_TIME not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("UPDATE_TIME between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("UPDATE_TIME not between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andIsValidIsNull() {
            addCriterion("IS_VALID is null");
            return (Criteria) this;
        }

        public Criteria andIsValidIsNotNull() {
            addCriterion("IS_VALID is not null");
            return (Criteria) this;
        }

        public Criteria andIsValidEqualTo(String value) {
            addCriterion("IS_VALID =", value, "isValid");
            return (Criteria) this;
        }

        public Criteria andIsValidNotEqualTo(String value) {
            addCriterion("IS_VALID <>", value, "isValid");
            return (Criteria) this;
        }

        public Criteria andIsValidGreaterThan(String value) {
            addCriterion("IS_VALID >", value, "isValid");
            return (Criteria) this;
        }

        public Criteria andIsValidGreaterThanOrEqualTo(String value) {
            addCriterion("IS_VALID >=", value, "isValid");
            return (Criteria) this;
        }

        public Criteria andIsValidLessThan(String value) {
            addCriterion("IS_VALID <", value, "isValid");
            return (Criteria) this;
        }

        public Criteria andIsValidLessThanOrEqualTo(String value) {
            addCriterion("IS_VALID <=", value, "isValid");
            return (Criteria) this;
        }

        public Criteria andIsValidLike(String value) {
            addCriterion("IS_VALID like", value, "isValid");
            return (Criteria) this;
        }

        public Criteria andIsValidNotLike(String value) {
            addCriterion("IS_VALID not like", value, "isValid");
            return (Criteria) this;
        }

        public Criteria andIsValidIn(List<String> values) {
            addCriterion("IS_VALID in", values, "isValid");
            return (Criteria) this;
        }

        public Criteria andIsValidNotIn(List<String> values) {
            addCriterion("IS_VALID not in", values, "isValid");
            return (Criteria) this;
        }

        public Criteria andIsValidBetween(String value1, String value2) {
            addCriterion("IS_VALID between", value1, value2, "isValid");
            return (Criteria) this;
        }

        public Criteria andIsValidNotBetween(String value1, String value2) {
            addCriterion("IS_VALID not between", value1, value2, "isValid");
            return (Criteria) this;
        }

        public Criteria andStateIsNull() {
            addCriterion("STATE is null");
            return (Criteria) this;
        }

        public Criteria andStateIsNotNull() {
            addCriterion("STATE is not null");
            return (Criteria) this;
        }

        public Criteria andStateEqualTo(String value) {
            addCriterion("STATE =", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotEqualTo(String value) {
            addCriterion("STATE <>", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateGreaterThan(String value) {
            addCriterion("STATE >", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateGreaterThanOrEqualTo(String value) {
            addCriterion("STATE >=", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateLessThan(String value) {
            addCriterion("STATE <", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateLessThanOrEqualTo(String value) {
            addCriterion("STATE <=", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateLike(String value) {
            addCriterion("STATE like", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotLike(String value) {
            addCriterion("STATE not like", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateIn(List<String> values) {
            addCriterion("STATE in", values, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotIn(List<String> values) {
            addCriterion("STATE not in", values, "state");
            return (Criteria) this;
        }

        public Criteria andStateBetween(String value1, String value2) {
            addCriterion("STATE between", value1, value2, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotBetween(String value1, String value2) {
            addCriterion("STATE not between", value1, value2, "state");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}